<?php 
/* 
* Template Name: Chat
*/
	global $SMTheme;
	get_header();
	echo "<link rel=\"stylesheet\" href=\"http://pokerface/wp-content/themes/karolina/chat.css\">\n";
	echo "<script type=\"text/javascript\" src=\"http://pokerface/wp-content/themes/karolina/socket.io.js\"></script>";
	echo "<script type=\"text/javascript\" src=\"http://pokerface/wp-content/themes/karolina/chatClient.js\"></script>";
	$mycurrent_user = wp_get_current_user();
	$myuserName = $mycurrent_user->user_login;
	get_template_part('theloop');
	get_template_part('navigation');
	if($myuserName != null)
	echo "<input id=\"Username\" type=\"hidden\" value=\"$myuserName\"/>";
	else
	echo "<input id=\"Username\" type=\"hidden\" value=\"Gast\"/>";
?>
	
	<div id="chatWrapper">
    <div id="chat">
     <div id="chatContent"></div>
     <input id="chatText" type="text" placeholder="schreibe etwas..." />
     <input id="sendMsg" type="submit" class="btn" value="senden" />
    </div>
   </div>
<?php
	get_footer();
?>